package proxy;

import javax.annotation.Resource;

public class MyBean {
    private String str;

    public void setStr(String str) {
        this.str = str;
    }

    @Resource
    private Hello hello;

    public void doSomething() {
        hello.sayHello();
        System.out.println("from MyBean " + str);
    }

}